package com.example.myapplication;

import android.support.annotation.Nullable;


import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import com.example.myapplication.db.User;

import java.util.List;

/**
 * 作者：李祥
 * 邮箱：499194689@qq.com
 */

public class mAdapter extends BaseQuickAdapter<User,BaseViewHolder> {

    mAdapter(int layoutResId, @Nullable List<User> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, User item) {
        helper.setText(R.id.user_id,String.valueOf(item.getUserid()));
        helper.setText(R.id.user_age,String.valueOf(item.getAge()));
        helper.setText(R.id.user_name,item.getName());
    }
}